package com.bridge.common.enums;

public enum IndentWaitPayStatusEnum {

    NOT_PAY("0", "未支付"),
    IS_PAY("1", "已支付"),
    PAYMENT_FAILED("2", "支付失败"),
    OUT_TIME_PAY("3", "支付关闭"),
    REFUNDED("4","已退款"),
    REFUND_IN_PROGRESS("5","退款中"),
    COMPLETE("6","已完成");

    private String type;
    private String desc;

    IndentWaitPayStatusEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public static String getIndentWaitPayStatusEnum(String type) {

        for (IndentWaitPayStatusEnum var : IndentWaitPayStatusEnum.values()) {
            if (type.equals(var.getType()))
                return var.getDesc();
        }
        return "未支付";
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
